# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         less2_01
# Description:  作用域
# Author:       asus
# Date:         2019/3/9
#-------------------------------------------------------------------------------


g_name = 'yzb'#全局变量
l_name = '123'
def hello():
    l_name = 'abc'#局部变量
    print(l_name)
    print('--------------')
    print(g_name)
    return None

if __name__ == '__main__':
    hello()
    print(l_name)
